#include"include/server.h"

int AddEpoll(int epfd,int fd){
    // 将监听sockfd加入监听
    struct epoll_event event;
    event.events=EPOLLIN;
    event.data.fd=fd;
    epoll_ctl(epfd,EPOLL_CTL_ADD,fd,&event);
    return 0;
}

int DelEpoll(int epfd,int fd){
   //删除fd的监听 
    epoll_ctl(epfd,EPOLL_CTL_DEL,fd,NULL);
    return 0;
}
